home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol05 / 05 / forms / form2.c < prev    next >
Text File  |  1990-09-01  |  985b  |  49 lines

  1. /*
  2.  * FORM LIBRARY - EDIT FORM MODULE
  3.  *
  4.  * 07/12/90 1.00 - Kevin P. Welch - initial creation.
  5.  *
  6.  */
  7.  
  8. #define NOCOMM
  9.  
  10. #include <windows.h>
  11. #include "form.h"
  12.  
  13. /**/
  14.  
  15. /*
  16.  * FormEdit( hWndParent, hData ) : HANDLE
  17.  *
  18.  *      hWndParent     handle to parent window
  19.  *      hData          handle to form data block
  20.  *
  21.  * This function displays a dialog box, enabling the user to enter
  22.  * data using a series of linked dialog boxes.  The value returned by
  23.  * this function is a global handle with the new data block.  If a
  24.  * NULL handle is returned then it can be assumed that the data
  25.  * entry was cancelled.
  26.  *
  27.  */
  28.  
  29. HANDLE FAR PASCAL FormEdit(
  30.   HWND    hWndParent,
  31.   HANDLE  hData )
  32. {
  33.  
  34.   /* warning level 3 compatibility */
  35.   hWndParent;
  36.  
  37.   /* FORM EDITING CODE HERE */
  38.   MessageBox(
  39.      hWndParent,
  40.      "Form being edited!",
  41.      "Form Library Stub",
  42.      MB_OK|MB_ICONASTERISK
  43.   );
  44.  
  45.   /* return handle to data */
  46.   return( hData );
  47.  
  48. }
  49.